package com.jxdinfo.hussar.cloud.module.labor.xgfgl.lwt070relatedparties.controller;

import com.jxdinfo.hussar.support.mp.base.controller.HussarBaseController;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.jxdinfo.hussar.support.audit.core.annotations.AuditLog;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.jxdinfo.hussar.support.audit.core.enums.AuditEventGrade;
import com.jxdinfo.hussar.support.audit.core.enums.AuditEventType;
import org.springframework.web.bind.annotation.PostMapping;
import com.jxdinfo.hussar.cloud.module.labor.xgfgl.lwt070relatedparties.vo.Lwt070RelatedPartiesPageVO;
import org.springframework.beans.factory.annotation.Autowired;
import com.jxdinfo.hussar.cloud.module.labor.xgfgl.lwt070relatedparties.service.Lwt070RelatedPartiesService;
import com.jxdinfo.hussar.cloud.module.labor.xgfgl.lwt070relatedparties.model.Lwt070RelatedParties;
import com.jxdinfo.hussar.platform.core.base.apiresult.ApiResponse;

/**
 * 相关方单位表控制器
 */
@RestController(value = "xgfgl.lwt070relatedparties.Lwt070RelatedPartiesController")
@AuditLog(moduleName = "相关方单位表")
@RequestMapping(value = "/xgfgl/lwt070RelatedParties")
public class Lwt070RelatedPartiesController extends HussarBaseController<Lwt070RelatedParties, Lwt070RelatedPartiesService> {

    private static final Logger logger = LoggerFactory.getLogger(Lwt070RelatedPartiesController.class);

    @Autowired
    private Lwt070RelatedPartiesService lwt070RelatedPartiesService;

    /**
     * 相关方单位表表格查询
     *
     * @return 查询结果
     */
    @AuditLog(moduleName = "相关方单位表", eventDesc = "表格查询", eventGrade = AuditEventGrade.SERVICE_LOG_TYPE, evnetType = AuditEventType.QUERY)
    @PostMapping("hussarQuery")
    public ApiResponse<Lwt070RelatedPartiesPageVO> hussarQuery() {
        return lwt070RelatedPartiesService.hussarQuery();
    }
}
